/*
 * @author:她不美却常驻我心
 * @timer:2018/4/20
 * @email:1184112975@qq.com
 * @title:
 * @note: 
 */
function changeSlender(e) {
	var  title = $(e).text();
	var  costId =$(e).data("costid");
	var  majorId =$(e).data("majorid");
	var $container = $(e).parents(".nav-tree").siblings(".item-container-bar");
	$.ajax({
		type: "post",
		url: "/guidance_service/front/data/info/getPositionName.do",
		data: {costId: costId,majorId:majorId},
		success: function(result) {
			var series =[]
			for(var i in result.data){
				series.push({name: result.data[i].positionName,data: [result.data[i].total]})
			}
			$container.highcharts({
		        chart: {type: 'bar'},
		        title: {text: title+"组成分析"},
		        xAxis: {categories: ["造价"]},
		        yAxis: {min: 0,title: {text: ""}},
		        legend: {reversed: true,maxHeight:99},
		        series: series
		    });
		}
	});
}
